package com.clm.mapper;

import com.clm.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author dinghuapeng
 * @Date 2023/11/6 20:24
 * @PackageName:com.clm.mapper
 * @ClassName: OrderDetailMapper
 * @Description: TODO
 * @Version 1.0
 */
@Mapper
public interface OrderDetailMapper {
    /**
     * 插入订单详情数据
     * @param orderDetailList
     */
    void insertBatch(List<OrderDetail> orderDetailList);

    @Select("select * from order_detail where order_id = #{orderId}")
    List<OrderDetail> getByOrderId(Long orderId);

}
